<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>

<head>
	<meta charset="UTF-8">
	<title>用户注册</title>
	<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.js"></script>
	<script type="text/javascript">
		function check() {
			var usercode = $("#usercode").val();
			var password = $("#password").val();
			if (usercode == "" || password == "") {
				$("#message").text("账号或密码不能为空");
				return false;
			}
			return true;
		}
	</script>
</head>

<body>
	<fieldset style="width: auto; margin: 0px auto;">
		<legend>
			<font style="font-size: 15px;" face="宋体">BOOT客户管理系统注册</font>
		</legend>
		<font color="red">
			<span id="message">${msg }</span>
		</font>
		<form action="${pageContext.request.contextPath}/regist.action" method="post" onsubmit="return check()">
			账号：<input type="text" id="usercode" name="usercode" /><br><br>
			密码：<input type="password" id="password" name="password" /><br><br>
				<input type="submit" value="注册" />
				<a href="${pageContext.request.contextPath}/toLogin.action">已有账号？去登录>>></a>
		</form>
	</fieldset>
</body>

</html>